package com.qianyu.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.project.entity.MaterialNeedDetail;
import com.qianyu.project.mapper.MaterialNeedDetailMapper;
import com.qianyu.project.service.IMaterialNeedDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lyz
 * @date create in 2021/2/6 15:13
 */
@Service
public class MaterialNeedDetailServiceImpl extends ServiceImpl<MaterialNeedDetailMapper, MaterialNeedDetail> implements IMaterialNeedDetailService {
    @Override
    public List<MaterialNeedDetail> getDetailListById(String id) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("need_id",id);
        return list(queryWrapper);
    }
}
